@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="projectTablePropertyForm">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div class="col-sm-10">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">所属表</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="projectTableId">
                                <option value="" selected="selected">请选择</option>
                                @for(projectTable in projectTableList){
                                <option value="${projectTable.id}">${projectTable.tableName}</option>
                                @}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">中文描述</label>
                        <div class="col-sm-9">
                            <input class="form-control" id="CNName" name="CNName" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">英文名称</label>
                        <div class="col-sm-9">
                            <input class="form-control" id="ENName" name="ENName" type="text">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">长度</label>
                        <div class="col-sm-9">
                            <input class="form-control" id="length" name="length" type="number">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">是否可为空</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="isNull">
                                <option value="1" selected="selected">Y</option>
                                <option value="0">N</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">数据库类型</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="dbType">
                                <option value="varchar" selected="selected">文本(varchar)</option>
                                <option value="int">数值(int)</option>
                                <option value="datetime">时间(datetime)</option>
                                <option value="tinyint">布尔值(tinyint)</option>
                                <option value="text">长文本(text)</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ProjectTablePropertyInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ProjectTablePropertyInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/system/projectTableProperty/project_table_property_info.js"></script>
@}
